package com.zhoum.multiconndb.model.mysql;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zhoum.multiconndb.model.IdEntity;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "job_task")
@DynamicUpdate
@DynamicInsert
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"})
@Data
public class Task  extends IdEntity {

    //@Column(name="created_date")
    Date createdDate;
    //@Column(name = "created_by")
    String createdBy;
    //@Column(name = "last_modified_date")
    Date lastModifiedDate;
    //@Column(name = "last_modified_by")
    String lastModifiedBy;
    //@Column(name = "name")
    private String name;
    //@Column(name = "task_class")
    private String taskClass;
    //@Column(name = "is_cron")
    private Boolean isCron;
    //@Column(name = "cron")
    private String cron;
    //@Column(name = "sharding_total_count")
    private Integer shardingTotalCount;
    //@Column(name = "start_time")
    private Date startTime;
    //@Column(name = "end_time")
    private Date endTime;
    //@Column(name = "sharding_item_parameters")
    private String shardingItemParameters;
    //@Column(name = "job_parameter")
    private String jobParameter;
    //@Column(name = "description")
    private String description;
    //@Column(name = "streaming_process")
    private Boolean streamingProcess;
    //@Column(name = "script_command_line")
    private String scriptCommandLine;
    //@Column(name = "monitor_execution")
    private Boolean monitorExecution;
    //@Column(name = "monitor_port")
    private Integer monitorPort;
    //@Column(name = "disabled")
    private Boolean disabled;



}
